//
//  GLTransferInsetsObject.h
//  GLLibDemo
//
//  Created by huang long on 2018/4/18.
//  Copyright © 2018年 历山大亚. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


typedef enum : NSUInteger {
    GLTransferInsetsTypeOffset,
    GLTransferInsetsTypeSize,
    GLTransferInsetsTypeScale,
} GLTransferInsetsType;

@interface GLTransferInsetsObject : NSObject

@property (nonatomic, assign,readonly)GLTransferInsetsType insetsType;
//内容偏移量
@property (nonatomic, assign, readonly)CGPoint contentOffset;
- (instancetype)initWithOffset:(CGPoint)offset;

//内容缩放比率
@property (nonatomic, assign, readonly)CGSize contentScale;
- (instancetype)initWithScale:(CGSize)scale;

//内容大小
@property (nonatomic, assign, readonly)CGSize contentSize;
- (instancetype)initWithSize:(CGSize)size;


//不透明度 default 0.5
@property (nonatomic, assign)CGFloat alpha;

//背景颜色 default blackColor
@property (nonatomic, strong)UIColor * color;

//圆角大小 default 0.0
@property (nonatomic, assign)CGFloat radius;

//周边能否点击 default NO.
@property (nonatomic, assign)BOOL canTouch;


- (CGRect)rectFromOriginFrame:(CGRect)frame;

@end
